#ifndef SLIDERGAME_H
#define SLIDERGAME_H

#include <QSlider>

#include <QList>

#include <QTimer>

#include "games/basegame.h"

// SliderGame: you have to set all slider to max value
class SliderGame : public BaseGame
{
    Q_OBJECT
    
public:
    // Constructor
    explicit SliderGame(QWidget *parent = 0, int difflvl = 1);

    // Members
    bool isSolved();
    QString hint() { return "Some slider shall stop some slider's sliding."; }

public slots:
    // Timeout slot
    void onTimeout();
    
private:
    QTimer * timer;

    QSlider ** slider_map;

    int no_sliders;
    int speed;

    QList<int> rand;
};

#endif // SLIDERGAME_H
